// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

Vue.config.productionTip = false

//自定义配置文件
import myConfig from "./common/myConfig";
Vue.prototype.myConfig = myConfig

import axios from "axios";
axios.defaults.baseURL = myConfig.url
Vue.prototype.axios = axios
Vue.prototype.$axios = axios

import ele from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ele)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
